<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="css/jingdian.css"/>
		<link href="css/mui.min.css" rel="stylesheet" />
		<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=HR3RRyTsXYdQ3QzzG5yUkg0q"></script>
		<script type="text/javascript" src="http://developer.baidu.com/map/jsdemo/demo/convertor.js"></script>
		<script src="js/mui.min.js"></script>
		<script type="text/javascript">
			mui.init()
		</script>
		<style>
			.mui-bar-nav{
				background-color:green ;
			}
			#allmap{
				height: 200px;
			}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
		    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		    <h1 class="mui-title">景点</h1>
		</header>
		<div class="mui-content">
			<div id="mokuai1">
				<div class="mui-input-row mui-search">
			    	<input type="search" class="mui-input-clear" placeholder="热门城市">
				</div>
			</div>
		    <div id="mokuai2" style="height: 200px;">
		    	<div id="allmap">
				地图加载中...
				</div>
		    </div>
		    <div class="mokuai3">
		    	<div class="mokuai3-1 zuo" id="mokuai3-1 zuo">游玩</div>
		    	<div class="mokuai3-1 you" id="mokuai3-1 you">美食</div>
		    </div>
		    <div class="content" id="4">
		    	<ul class="mui-table-view">
		    	    <li class="mui-table-view-cell mui-media">
		    	        <a href="dujia.html">
		    	            <img class="mui-media-object mui-pull-left" src="img/sy1.jpg">
		    	            <div class="mui-media-body">
		    	                三亚旅游度假区
		    	                <p class="mui-ellipsis">四季如春的三亚，是您旅游度假，度蜜月等等的圣地</p>
		    	            </div>
		    	        </a>
		    	    </li>
		    	    <li class="mui-table-view-cell mui-media">
		    	        <a href="javascript:;">
		    	            <img class="mui-media-object mui-pull-left" src="img/sh2.jpg">
		    	            <div class="mui-media-body">
		    	                蔚县
		    	                <p class="mui-ellipsis">想要这样一间小木屋，夏天挫冰吃瓜，冬天围炉取暖.</p>
		    	            </div>
		    	        </a>
		    	    </li>
		    	    <li class="mui-table-view-cell mui-media">
		    	        <a href="javascript:;">
		    	            <img class="mui-media-object mui-pull-left" src="img/baishishan.jpg">
		    	            <div class="mui-media-body">
		    	                河北保定
		    	                <p class="mui-ellipsis">烤炉模式的城，到黄昏，如同打翻的调色盘一般.</p>
		    	            </div>
		    	        </a>
		    	    </li>
		    	    <li class="mui-table-view-cell mui-media">
		    	        <a href="javascript:;">
		    	            <img class="mui-media-object mui-pull-left" src="http://placehold.it/40x30">
		    	            <div class="mui-media-body">
		    	                CBD
		    	                <p class="mui-ellipsis">烤炉模式的城，到黄昏，如同打翻的调色盘一般.</p>
		    	            </div>
		    	        </a>
		    	    </li>
		    	    <li class="mui-table-view-cell mui-media">
		    	        <a href="javascript:;">
		    	            <img class="mui-media-object mui-pull-left" src="http://placehold.it/40x30">
		    	            <div class="mui-media-body">
		    	                CBD
		    	                <p class="mui-ellipsis">烤炉模式的城，到黄昏，如同打翻的调色盘一般.</p>
		    	            </div>
		    	        </a>
		    	    </li>
		    	    <li class="mui-table-view-cell mui-media">
		    	        <a href="javascript:;">
		    	            <img class="mui-media-object mui-pull-left" src="http://placehold.it/40x30">
		    	            <div class="mui-media-body">
		    	                CBD
		    	                <p class="mui-ellipsis">烤炉模式的城，到黄昏，如同打翻的调色盘一般.</p>
		    	            </div>
		    	        </a>
		    	    </li>
		    	    <li class="mui-table-view-cell mui-media">
		    	        <a href="javascript:;">
		    	            <img class="mui-media-object mui-pull-left" src="http://placehold.it/40x30">
		    	            <div class="mui-media-body">
		    	                CBD
		    	                <p class="mui-ellipsis">烤炉模式的城，到黄昏，如同打翻的调色盘一般.</p>
		    	            </div>
		    	        </a>
		    	    </li>
		    	</ul>
		    </div>	
		</div>
	</body>
	<script type="text/javascript">
		mui.init({
				swipeBack: true //启用右滑关闭功能
			});
			var info = document.getElementById("info");
			mui.plusReady(function() {
				plus.geolocation.getCurrentPosition(translatePoint, function(e) {
					mui.toast("异常:" + e.message);
				});
			});

			function translatePoint(position) {
				var currentLon = position.coords.longitude;
				var currentLat = position.coords.latitude;
				var gpsPoint = new BMap.Point(currentLon, currentLat);
				BMap.Convertor.translate(gpsPoint, 2, initMap); //坐标转换
			}

			function initMap(point) {
				map = new BMap.Map("allmap"); //创建地图
				map.addControl(new BMap.NavigationControl());
				map.addControl(new BMap.ScaleControl());
				map.addControl(new BMap.OverviewMapControl());
				map.centerAndZoom(point, 15);
				map.addOverlay(new BMap.Marker(point));

			}
		document.getElementById('mokuai3-1 zuo').addEventListener('tap',function(){
		var title=this.getAttribute("title");
		mui.openWindow({
			url:"sight.html",
			id:"sight.html",
			style:{},
			extras:{
				title:title
			},
			show:{
				autoShow:true,
				aniShow:"slide-in-right",
				duration:100
			},
			waiting:{
				autoShow:true,
				title:"正在加载.....",
				options:{
//				width:
//				height:
				}
			}
		})
	})
		document.getElementById('mokuai3-1 you').addEventListener('tap',function(){
		var title=this.getAttribute("title");
		mui.openWindow({
			url:"food.html",
			id:"food.html",
			style:{},
			extras:{
				title:title
			},
			show:{
				autoShow:true,
				aniShow:"slide-in-right",
				duration:100
			},
			waiting:{
				autoShow:true,
				title:"正在加载.....",
				options:{
//				width:
//				height:
				}
			}
		})
	})
	</script>
</html>